package com.daiyang.lottery.controller.param;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;
import java.util.List;

@Data
public class CreateActivityParam implements Serializable {
    /**
     * 活动名称
     */

    @NotBlank(message = "活动名称不能为空")
    private String activityName;
    /**
     *  年会活动描述
     */
    @NotBlank(message = "活动描述不能为空")
    private String description;


    /**
     * 活动奖品关联
     */
    @NotEmpty (message = "活动奖品关联不能为空")
    @Valid
    private List<CreatePrizeByActivityParam> activityPrizeList;

    /**
     * 活动人员关联
     */
    @NotEmpty(message = "活动人员关联不能为空")
    @Valid
    private List<CreateUserByActivityParam> activityUserList;

}
